package com.mjh.zhujianju.service.party;

import com.livew.framework.base.service.BaseService;
import com.livew.framework.exception.XTBusinessException;
import com.livew.framework.page.PagedResult;
import com.mjh.zhujianju.model.party.BuildingNewsEO;
import com.mjh.zhujianju.vo.party.BuildingNewsVO;
import java.util.List;

/**
 * @author liuyang
 * @Description: 党建
 * @date 2018/8/15 0:09
 */
public interface BuildingNewsService extends BaseService<BuildingNewsEO> {

    /**
     * 首页列表展示
     * @return
     */
    List<BuildingNewsVO> queryBuildingNewsIndexList() throws XTBusinessException;

    /**
     * 所有信息展示
     * @param type
     * @return
     */
    List<BuildingNewsVO>  queryBuildingNewsList(String type) throws XTBusinessException;

    /**
     * 根据政策id查询详细信息
     * @param id
     * @return
     */
    BuildingNewsVO queryBuildingNewsInfo(Long id) throws XTBusinessException;

    PagedResult<BuildingNewsVO> findBuildingNewsPagination(BuildingNewsEO buildingNewsEO);

    /**
     * 查找详情
     * @param id
     * @throws XTBusinessException
     */
    BuildingNewsVO getInfo(Long id) throws XTBusinessException;

}
